//
//  MyLotteryViewController.m
//  彩票项目
//
//  Created by 伍银荣 on 2021/8/3.
//  Copyright © 2021 com.WYR. All rights reserved.
//

#import "MyLotteryViewController.h"
#import "SettingTableViewController.h"

@interface MyLotteryViewController ()

@end

@implementation MyLotteryViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    UIButton *btn = [[UIButton alloc]init];
    [btn setTitle:@"客服" forState:UIControlStateNormal];
   // [btn setTitleColor:[UIColor yellowColor] forState:UIControlStateNormal];
    [btn setTitleEdgeInsets:UIEdgeInsetsMake(0, 5, 0, -5)];
    btn.titleLabel.font = kFont(15);
    [btn setImage:[UIImage imageNamed:@"kefu1"] forState:UIControlStateNormal];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:btn];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"shezhi"] style:UIBarButtonItemStyleDone target:self action:@selector(setItemClick)];
    
    
}

//设置按钮的点击
- (void)setItemClick {
    NSLog(@"设置按钮的点击");
    SettingTableViewController *settingVC = [[SettingTableViewController alloc]init];
    settingVC.navigationItem.title = @"设置";
    settingVC.plistName = @"Setting";
    settingVC.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"常见问题" style:UIBarButtonItemStyleDone target:self action:nil];
    [self.navigationController pushViewController:settingVC animated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
